from django.urls import path
from . import views

urlpatterns = [
    path("check/username/<str:username>/",views.CheckUsername.as_view()),  # 账号
    path("check/mobile/<str:mobile>/",views.CheckMobile.as_view()),   # 手机号
    path("image_code/<str:uuid>/",views.ImgCode.as_view()),   # 验证码
    path("check_image_code/",views.CheckImgCode.as_view()),
    path("register/", views.Register.as_view()),
    path("login/", views.Login.as_view()), # 登录
    path('user/', views.UserCenter.as_view()),  # 获取用户信息
    path('user/addr/', views.UserAddr.as_view()),  # 添加地址
    path('user/password/', views.UpadatePass.as_view()),  # 修改密码
]